import { Component } from '@angular/core';
import {NavController, NavParams } from 'ionic-angular';
import {HttpServies} from '../../providers/http-servies';
import 'rxjs/add/operator/toPromise';



@Component({
  selector: 'page-integral',
  templateUrl: 'integral.html',
  providers:[HttpServies]
})
export class IntegralPage {
  xjjlJson:any=[];
  constructor(public navCtrl: NavController, public navParams: NavParams,private http:HttpServies) {
  }

  ionViewDidLoad() {
    this.http.httpPost('/Home/homepage/integranl_detail')
        .then(res => {
          if (res && res.code == 1) {
            this.xjjlJson = res.data;
          } else {
            this.http.showErro(res.msg);
          }
        })
  }


}
